package javahtml5;

import android.content.Context;
import android.webkit.JavascriptInterface;
import android.webkit.WebView;
import android.widget.Toast;

/**
 * Created by Admin on 2016/3/14.
 */
public class JsKindsActivity {

    private Context mContext;
    private WebView mWebView;
    public JsKindsActivity(Context context,WebView webView){
        mContext =context;
        mWebView = webView;
    }

    @JavascriptInterface
    public void toast(String info){
        Toast.makeText(mContext, info, Toast.LENGTH_SHORT).show();
    }
}
